package com.ruoyi.order.domain;

import java.io.Serializable;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 购物车对象 shopping_cart
 *
 * @author ruoyi
 * @date 2022-04-23
 */
@TableName("shopping_cart")
public class ShoppingCart extends BaseEntity implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /** 名称 */
    private String name;

    /** 图片 */
    private String image;

    /** 主键 */
    private Long userId;

    /** 菜品id */
    private Long dishId;

    /** 套餐id */
    private Long setmealId;

    /** 口味 */
    private String dishFlavor;

    /** 数量 */
    private Long number;

    /** 金额 */
    private BigDecimal amount;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setImage(String image)
    {
        this.image = image;
    }

    public String getImage()
    {
        return image;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setDishId(Long dishId)
    {
        this.dishId = dishId;
    }

    public Long getDishId()
    {
        return dishId;
    }
    public void setSetmealId(Long setmealId)
    {
        this.setmealId = setmealId;
    }

    public Long getSetmealId()
    {
        return setmealId;
    }
    public void setDishFlavor(String dishFlavor)
    {
        this.dishFlavor = dishFlavor;
    }

    public String getDishFlavor()
    {
        return dishFlavor;
    }
    public void setNumber(Long number)
    {
        this.number = number;
    }

    public Long getNumber()
    {
        return number;
    }
    public void setAmount(BigDecimal amount)
    {
        this.amount = amount;
    }

    public BigDecimal getAmount()
    {
        return amount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("image", getImage())
            .append("userId", getUserId())
            .append("dishId", getDishId())
            .append("setmealId", getSetmealId())
            .append("dishFlavor", getDishFlavor())
            .append("number", getNumber())
            .append("amount", getAmount())
            .append("createTime", getCreateTime())
            .toString();
    }
}
